package lab01;

public class Test10 {
    public static void main(String[] args) {
        String[] s = new String[]{"A", "B", "C", "D", "E", "F",
                "G", "H", "I", "J", "K", "L", "M", "N",
                "O", "P", "Q", "R", "S", "T"};
        int i,m,n,num;
        char ch;
        int num1 = 0;
        int num2 = 10;
        for (i = 1; i < 5; i++) {
            for (m= 0; m <4-i ; m++) {
                System.out.print(" ");
            }
            for (n = 0; n < i; n++) {
                System.out.print(s[num1]);
                System.out.print(" ");
                num1++;
            }System.out.println();
        }
        for (i=1;i<5;i++){
            for(m =1;m <=5; m++){
                System.out.print(" ");
            }
            for(n =1;n>i;n--){
                System.out.print(s[num2]);
                System.out.print(" ");
                num2++;
            }
            System.out.println();
        }
    }
}
